﻿
#include "GroundedFactGroup.h"

const char * GroundedFactGroup::idFactName_              = "id";
const char * GroundedFactGroup::factorFactName_          = "factor";
const char * GroundedFactGroup::tempFactName_            = "temp";
const char * GroundedFactGroup::batteryVoltageFactName_  = "batteryVoltage";
const char * GroundedFactGroup::totalResistanceFactName_ = "totalResistance";
const char * GroundedFactGroup::aPoleResistorFactName_   = "aPoleResistor";
const char * GroundedFactGroup::bPoleResistorFactName_   = "bPoleResistor";
const char * GroundedFactGroup::cPoleResistorFactName_   = "cPoleResistor";
const char * GroundedFactGroup::dPoleResistorFactName_   = "dPoleResistor";
const char * GroundedFactGroup::currentFactName_         = "current";
const char * GroundedFactGroup::strikeCountFactName_     = "strikeCount";
const char * GroundedFactGroup::strikeTimeFactName_      = "strikeTime";
const char * GroundedFactGroup::strikeCurrentFactName_   = "strikeCurrent";
const char * GroundedFactGroup::describeInfoFactName_    = "describeInfo";

GroundedFactGroup::GroundedFactGroup(QObject *parent)
    : FactGroup{parent}
    , id_(idFactName_,Fact::Fact::valueTypeString)
    , factor_(factorFactName_,Fact::valueTypeDouble)
    , temp_(tempFactName_,Fact::valueTypeDouble)
    , batteryVoltage_(batteryVoltageFactName_,Fact::valueTypeDouble)
    , totalResistance_(totalResistanceFactName_,Fact::valueTypeDouble)
    , aPoleResistor_(aPoleResistorFactName_,Fact::valueTypeDouble)
    , bPoleResistor_(bPoleResistorFactName_,Fact::valueTypeDouble)
    , cPoleResistor_(cPoleResistorFactName_,Fact::valueTypeDouble)
    , dPoleResistor_(dPoleResistorFactName_,Fact::valueTypeDouble)
    , current_(currentFactName_,Fact::valueTypeDouble)
    , strikeCount_(strikeCountFactName_,Fact::valueTypeUint32)
    , strikeTime_(strikeTimeFactName_,Fact::valueTypeTimeInSeconds)
    , strikeCurrent_(strikeCurrentFactName_,Fact::valueTypeDouble)
    , describeInfo_(describeInfoFactName_,Fact::valueTypeString)
{
    addFact(&id_);
    addFact(&factor_);
    addFact(&temp_);
    addFact(&batteryVoltage_);
    addFact(&totalResistance_);
    addFact(&aPoleResistor_);
    addFact(&bPoleResistor_);
    addFact(&cPoleResistor_);
    addFact(&dPoleResistor_);
    addFact(&current_);
    addFact(&strikeCount_);
    addFact(&strikeTime_);
    addFact(&strikeCurrent_);
    addFact(&describeInfo_);
}





















